package com.song.guli.service.edu.fegin.fallback;

import com.song.guli.common.base.result.R;
import com.song.guli.service.edu.fegin.VodMediaService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 宋超
 * HP - the login name of the current user.
 * 2021/4/17 - the current system date.
 * 20:47 - the current system time.
 */
@Service
@Slf4j
public class VodMediaServiceFallBack implements VodMediaService {
    @Override
    public R removeVideo(String vodId) {
        log.info("熔断保护");
        return R.error();
    }

    @Override
    public R removeVideoByIdList(List<String> videoIdList) {
        log.info("熔断保护");
        return R.error().message("调用超时");
    }
}
